
#ifdef a
#include <stdio.h>
void fun(char* s, int* a, int* b);
int main()
{
    char s[100]; int upper = 0, lower = 0;
    gets(s);
    fun(s, &upper, &lower);
    printf("upper=%d  lower=%d\n", upper, lower);
    return 0;
}

//统计 大写 小写
void fun(char* s, int* a, int* b) {
    int i = 0;
    while (s[i]) {
        if (s[i] >= 'a' && s[i] <= 'z')
            (*b)++;
        else if (s[i] >= 'A' && s[i] <= 'Z')
            (*a)++;
        i++;
    }
    return;
}
#endif